package com.ldgame.entities;

import org.lwjgl.util.vector.Vector2f;

public class Player extends Entity {
	private float selectRadius;
	private float health = 1000.0f;
	private boolean followed = false;
	private boolean selecting = false;
	
	public Player() {
		super(Team.TINY_HUMAN);
		setRadius(32.0f);
		setPosition(new Vector2f(-2350.0f, -2350.0f));
		getSprite().setCamPosition(position);
		sprite.setAnimTimer(1.0f);
		sprite.setWidth(2.0f * radius);
		sprite.setHeight(2.0f * radius);
		setSpeed(200.0f);
	}

	public float getSelectRadius() {
		return selectRadius;
	}

	public void setSelectRadius(float selectRadius) {
		this.selectRadius = selectRadius;
	}
	
	public float getHealth() {
		return health;
	}

	public void setHealth(float health) {
		this.health = health;
	}
	
	public void damage() {
		--health;
	}
	
	public void increaseSelectRadius(float dr) {
		this.selectRadius += dr;
	}

	public boolean isFollowed() {
		return followed;
	}

	public void setFollowed(boolean followed) {
		this.followed = followed;
	}

	public boolean isSelecting() {
		return selecting;
	}

	public void setSelecting(boolean selecting) {
		this.selecting = selecting;
	}
}